package com.zhiyou100.review.day014.myinnerclass;

/**
 * @packageName: Test
 * @className: com.zhiyou100.review.day014.myinnerclass
 * @Description: TODO 内部类测试
 * @author: yang
 * @date: 6/22/20
 */
public class Test {
    public static void main(String[] args) {
        Object oneInnerclass = new Test().getOneInnerclass();
        System.out.println(oneInnerclass);
        // com.zhiyou100.review.day014.myinnerclass.Test$1InnerClass@15aeb7ab

    }

    public Object getOneInnerclass() {
        class InnerClass {
            int a = 10;
            int b = 20;
        }
        return new InnerClass();
    }
}
